﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model_SSResourceManager;

namespace Presenter_SSResourceManager
{
    public class PresenterManageUsers
    {
        private readonly ModelsManager _mModel;
        private readonly IViewManageUsers _viewManageUsers;
        public PresenterManageUsers(IViewManageUsers view)
        {
            this._viewManageUsers = view;
            _mModel = ModelInstanse.Get();
        }

        public void LoadData()
        {
           IEnumerable<User> users = _mModel.userModel.GetAll();
           _viewManageUsers.SetDataForUsers(users);
        }
    }
}
